Class OrchestrationError
- java.lang.Object
-
- com.vasco.orchestration.client.errors.OrchestrationError
-
public class OrchestrationError extends java.lang.ObjectTheOrchestrationErrorclass is the base class used for asynchronous error management in the Orchestration SDK.
-
-
Constructor Summary
Constructors Constructor Description OrchestrationError(int errorCode, java.lang.Throwable exception)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()return error code attached to the errorjava.lang.ThrowablegetException()return the exception attached to the errorintgetInitialErrorCode()if the cause is not null and a InternalException we return the initial error code 0 otherwise.voidsetErrorCode(int errorCode)set the error codevoidsetException(java.lang.Throwable exception)set the exception
-
-
-
Method Detail
-
getErrorCode
public int getErrorCode()
return error code attached to the error- Returns:
- error code
-
setErrorCode
public void setErrorCode(int errorCode)
set the error code- Parameters:
errorCode- error code
-
getException
public java.lang.Throwable getException()
return the exception attached to the error- Returns:
- exception
-
setException
public void setException(java.lang.Throwable exception)
set the exception- Parameters:
exception- exception
-
getInitialErrorCode
public int getInitialErrorCode()
if the cause is not null and a InternalException we return the initial error code 0 otherwise.- Returns:
- the initial error code
-
-